package com.gzxx.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author MAX
 * @date 2020/7/23 10:56 上午
 */

@Data
@ApiModel(value="更新系统用户传输实体",description="更新系统用户传输实体")
public class SysUserUpdateDto implements Serializable {

    private static final long serialVersionUID = 2332734522296518444L;

    @Min(value = 1, message = "系统用户id大于0")
    @NotNull
    @ApiModelProperty(value = "系统用户id", example = "1234")
    private Long id;

    @NotBlank(message = "账户不能为空")
    @ApiModelProperty(value = "账户", example = "asd7222613")
    private String userAccount;

    @ApiModelProperty(value = "员工姓名", example = "张三")
    private String employeeName;

    @ApiModelProperty(value = "邮箱", example = "xxxx@qq.com")
    private String email;

    @ApiModelProperty(value = "手机", example = "13135712334")
    private String mobile;

    @ApiModelProperty(value = "性别", example = "0")
    private Integer gender;

    @ApiModelProperty(value = "用户图像", example = "XXX")
    private String avatar;

    @ApiModelProperty(value = "账户状态", example = "0")
    private Integer accountStatus;

    @ApiModelProperty(value = "角色ID", example = "1")
    private Long roleId;

    @ApiModelProperty(value = "一级部门id", example = "2")
    private Integer firstDeptId;

    @ApiModelProperty(value = "二级部门id", example = "2")
    private Integer secondDeptId;
}
